import axios from 'axios'

export function page(params) {
    return axios.get(window.GLOBAL_CONFIG.BASE_URL +  '/myRecords/page', {params})
}

export function save(data) {
    return axios.post(window.GLOBAL_CONFIG.BASE_URL +  '/myRecords/save', data)
}

export function del(id) {
    return axios.post(window.GLOBAL_CONFIG.BASE_URL +  '/myRecords/delete', {id}, {
        headers: {
            'content-type': 'application/x-www-form-urlencoded'
        }
    })
}